package com.xuecheng.api.order;

import com.xuecheng.api.order.model.OrdersDTO;
import com.xuecheng.api.order.model.pay.PayCodeUrlResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api(value = "订单服务API, 订单生成、查看、取消、删除", tags = "订单管理")
public interface OrderApi{

    @ApiOperation("根据课程发布ID生成课程支付订单")
    @ApiImplicitParam(name = "coursePubId", value = "课程发布ID", required = true, dataType = "Long", paramType = "path", example = "1")
    OrdersDTO createOrder(Long coursePubId);


    @ApiOperation("创建订单支付数据")
    PayCodeUrlResult createPayment(String orderNo);
}
